;--=========================================================
;--==================| DEPENDENCIES |=======================
;--=========================================================

[tch_repair]:booster_multi	;;-- (technical) for usable kits
$spawn 				                               = "devices\repair_kit_10"
kind			                                   = i_repair
can_trade			                               = true
quest_item      	                               = false
script_binding 							 	       = bind_item.bind
use_condition                            	       = true
remove_after_use                                   = false
repair_tool                                        = true
repair_part_bonus								   = 0

[tch_repair0]:identity_immunities	;;-- (technical) for unusual kits
GroupControlSection                                = spawn_group 
discovery_dependency                               = 
$spawn                                             = "food and drugs\harmonica_a"
kind			                                   = i_repair
class 									           = II_ATTCH
cform									           = skeleton
visual					 					       = dynamics\repair\cleaning_kit_r7.ogf
attach_angle_offset                                = 0.000000, -1.204452, -1.262921 
attach_position_offset                             = 0.081856, -0.035081, 0.011694 
attach_bone_name                                   = bip01_l_hand 
auto_attach                                        = false 

[tch_upgr]:identity_immunities	
$spawn 								= "devices\roubles"
$prefetch 							= 16
class 								= II_ATTCH
kind							= i_upgrade
cform								= skeleton
visual								= dynamics\equipments\trade\jbox.ogf
inv_grid_width     					= 2
inv_grid_height    					= 1
inv_grid_x         					= 126
inv_grid_y         					= 10
attach_angle_offset					= -0.287979, 1.560923, 1.544060
attach_position_offset				= 0.096910, -0.013594, 0.107925
attach_bone_name					= bip01_r_hand
auto_attach							= false

[tch_part]:identity_immunities ;;-- (technical)
GroupControlSection                                    = spawn_group 
discovery_dependency                                   = 
$spawn                                                 = "food and drugs\harmonica_a"
cform                                                  = skeleton 
class                                                  = II_ATTCH 
kind			                                       = i_part
visual				                                   = dynamics\equipments\trade\parts.ogf
description			                                   = st_wpn_spareparts_descr
inv_name			                                   = st_wpn_spareparts
inv_name_short		                                   = st_wpn_spareparts
inv_grid_width			                               = 1
inv_grid_height			                               = 1
inv_grid_x			                                   = -5
inv_grid_y			                                   = 56
cost				                                   = 0
inv_weight			                                   = 1
attach_angle_offset		                               = -0.287979, 1.560923, 1.544060
attach_position_offset	                               = 0.096910, -0.013594, 0.107925
attach_bone_name		                               = bip01_r_hand
auto_attach				                               = false



;;----=========================================================
;;----=====================| Repair Kits |=====================
;;----=========================================================

;;-- Tronex
;; DEFINES:
;; repair_type 							(item type for repair tools. When this type is specified for repair_only in a repair kit, it can be repair this item)
;; repair_part_bonus	 	            (Amount bonus to add_condition if parts are used)

;; repair_tool                          (If set to true, this item will be used as a repair tool)
;; repair_min_condition 	            (Min required condition to use)
;; repair_max_condition 	            (Max required condition to use)
;; repair_add_condition 	            (Amount of condition added to repaired item)
;; repair_use_parts	 	                (If set to true, allows the use of parts (2nd window) to add overall bonus to repair)
;; repair_only				            (type of items that can be repaired by this kit)
;; repair_parts_match					(If set to true, parts identical to the item can be used in repair)
;; repair_parts_sections                (items that can be used as repair parts to add overall bonus to repair)
;; repair_parts_type                 	(type of items that can be used as repair parts to add overall bonus to repair, defined by repair_type)
;; repair_use_actor_effects             (Uses actor_effects script. Setup a *_dummy section for the item in actor_effects_data.script)
;; repair_parts_multi					(nultiplier for repair bonus coming from support parts)

;; workshop_tool                    	(If set to true, this item will be used as a workshop repair tool for parts replacements and upgrades)
;; workshop_support						(type of items that can be dealt with at the workshop using this kit)

;;----==============================================< UNIVERSAL KITS >=================================================

[universal_repair_kit]:tch_repair
$spawn 							                   = "devices\repair_kit_universal"
description						                   = str_repair_kit_universal_descr
inv_name						                   = str_repair_kit_universal
inv_name_short					                   = str_repair_kit_universal
cost							                   = 3500
inv_weight						                   = 5
empty_weight						               = 2
visual							                   = dynamics\equipments\blue_box.ogf
inv_grid_width     = 2
inv_grid_height    = 2
inv_grid_x         = 33
inv_grid_y         = 19
max_uses								           = 3

1icon_layer_x       	                           = 50
1icon_layer_y      		                           = 50
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_repair


repair_min_condition 			                   = 0	
repair_max_condition 			                   = 0.75		
repair_add_condition 			                   = 0.25		
repair_part_bonus	 			                   = 0.0		
repair_use_parts	 			                   = false	
repair_only				                           = outfit, weapon
repair_parts_sections			                   = 
repair_use_actor_effects 		                   = true      
workshop_tool						 		       = false
workshop_support                                   =
tier                                               = 3

[universal_maintenance_kit]:tch_repair
$spawn 							                   = "devices\repair_kit_maintenance_universal"
description						                   = str_repair_kit_maintenance_universal_descr
inv_name						                   = str_repair_kit_maintenance_universal
inv_name_short					                   = str_repair_kit_maintenance_universal
cost							                   = 1500
inv_weight						                   = 2
empty_weight						               = 1
visual							                   = dynamics\equipments\blue_box.ogf
inv_grid_width     = 2
inv_grid_height    = 1
inv_grid_x         = 33
inv_grid_y         = 18
max_uses								           = 4

1icon_layer_x       	                           = 50
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_repair

repair_min_condition 			                   = 0.75	
repair_max_condition 			                   = 0.999		
repair_add_condition 			                   = 0.05		
repair_part_bonus	 			                   = 0.0		
repair_use_parts	 			                   = true	
repair_only				                           = outfit, weapon
repair_parts_sections			                   = 
repair_use_actor_effects 		                   = true      
workshop_tool						 		       = true
workshop_support                                   = outfit, weapon
tier                                               = 2

[as_script_grenade]:explosive_grenade
script_binding        = bind_physic_object.init
custom_data            = scripts\as_script_grenade.ltx

;;--==========================< Sleeping tools >=============================
[itm_sleepbag]:booster
GroupControlSection                                = spawn_group
discovery_dependency                               =
$spawn                                             = "food and drugs\antirad"
$prefetch                                          = 32
;class                                              = II_ANTIR
kind								           = i_kit
cform                                              = skeleton
visual                                             = dynamics\equipments\item_sleepbag.ogf
inv_weight                                         = 2.0
description                                        = str_itm_sleepbag_descr
inv_name                                           = str_itm_sleepbag_name
inv_name_short                                     = str_itm_sleepbag_name
inv_grid_width     = 3
inv_grid_height    = 2
inv_grid_x         = 33
inv_grid_y         = 14
cost                                               = 500
eat_health                                         = 0
eat_satiety                                        = 0
eat_power                                          = 0
eat_radiation                                      = 0
eat_alcohol                                        = 0
wounds_heal_perc                                   = 0
animation_slot                                     = 4
hud                                                = wpn_vodka_hud
placeable_section                                  = ph_sleepbag	                                       ;Section of placeable physics object
tier = 3
; use1_functor                = item_tent.str_use
; use1_action_functor         = item_tent.func_use_bag

[compression_bag]:booster
GroupControlSection                                = spawn_group
discovery_dependency                               =
$spawn    		                                   = "devices\compession bag"
$prefetch   	                                   = 16
kind								           = i_kit
visual                                             = dynamics\equipments\sumka2.ogf
description  	                                   = str_compression_bag_descr
inv_name   		                                   = str_compression_bag
inv_name_short                                     = str_compression_bag
inv_grid_width     = 2
inv_grid_height    = 2
inv_grid_x         = 33
inv_grid_y         = 16
cost    		                                   = 150
inv_weight			                               = 0.5
attach_angle_offset		                           = -0.287979, 1.560923, 1.544060
attach_position_offset		                       = 0.096910, -0.013594, 0.107925
attach_bone_name		                           = bip01_r_hand
auto_attach				                           = false
remove_after_use                                   = false
tier = 1

;;----==============================================< WEAPON SCRAP >=================================================

[prt_scrap_1]:tch_part
visual				                                   = dynamics\equipments\trade\ammo.ogf
description			                                   = str_prt_scrap_1_descr
inv_name			                                   = str_prt_scrap_1
inv_name_short			                               = str_prt_scrap_1
inv_grid_width     = 1
inv_grid_height    = 1
inv_grid_x         = 35
inv_grid_y         = 16

1icon_layer_x       	                           = 0
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_tier_1

cost				                                   = 50
inv_weight			                                   = 0.01
attach_angle_offset		                               = -0.287979, 1.560923, 1.544060
attach_position_offset		                           = 0.096910, -0.013594, 0.107925
attach_bone_name		                               = bip01_r_hand
auto_attach				                               = false
repair_part_bonus	 	                               = 0
snd_on_take								 		       = part
tier                                                   = 1

[prt_scrap_2]:tch_part
visual				                                   = dynamics\equipments\trade\ammo.ogf
description			                                   = str_prt_scrap_2_descr
inv_name			                                   = str_prt_scrap_2
inv_name_short			                               = str_prt_scrap_2
inv_grid_width     = 1
inv_grid_height    = 1
inv_grid_x         = 35
inv_grid_y         = 17
cost				                                   = 200
inv_weight			                                   = 0.01
attach_angle_offset		                               = -0.287979, 1.560923, 1.544060
attach_position_offset		                           = 0.096910, -0.013594, 0.107925
attach_bone_name		                               = bip01_r_hand
auto_attach				                               = false
snd_on_take								 		       = part

1icon_layer_x       	                           = 0
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_tier_2

tier                                                   = 2

[prt_scrap_3]:tch_part
visual				                                   = dynamics\equipments\trade\ammo.ogf
description			                                   = str_prt_scrap_3_descr
inv_name			                                   = str_prt_scrap_3
inv_name_short			                               = str_prt_scrap_3
inv_grid_width     = 1
inv_grid_height    = 1
inv_grid_x         = 35
inv_grid_y         = 18
cost				                                   = 1000
inv_weight			                                   = 0.1
attach_angle_offset		                               = -0.287979, 1.560923, 1.544060
attach_position_offset		                           = 0.096910, -0.013594, 0.107925
attach_bone_name		                               = bip01_r_hand
auto_attach				                               = false
snd_on_take								 		       = part

1icon_layer_x       	                           = 0
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_tier_3

tier                                                   = 3


;;--==========================< Disassembly Tools >=============================
[swiss_knife]:identity_immunities
$spawn 				                               = "devices\roubles"
$prefetch 			                               = 16
class				                               = II_ATTCH
kind			                               	   = i_tool
cform				                               = skeleton
visual				                               = dynamics\equipments\trade\swiss.ogf
description			                               = str_swiss_descr 
inv_name			                               = str_swiss
inv_name_short			                           = str_swiss
inv_grid_width     = 1
inv_grid_height    = 1
inv_grid_x         = 35
inv_grid_y         = 19
upgr_icon_path								 = ui\actor_items\ui_actor_items_1
upgr_icon_x								 	 = 600
upgr_icon_y								 	 = 400
upgr_icon_width						 	 	 = 150
upgr_icon_height						 	 = 100
cost				                               = 650
inv_weight			                               = 0.1
attach_angle_offset		                           = -0.287979, 1.560923, 1.544060
attach_position_offset		                       = 0.096910, -0.013594, 0.107925
attach_bone_name		                           = bip01_r_hand
script_binding                                     = bind_item.bind
auto_attach				                           = false
use_condition                                      = false
disassemble_tool                                   = true
degradation_factor						           = 0.0
tier = 3

;;----==============================================< Upgrade Parts >=================================================

[upgr_w_oldworld_kit_1]:tch_upgr
visual								= dynamics\upgrade\upgr_o_1.ogf
description							= str_upgrade_parts_1_descr
inv_name							= str_upgrade_parts_1
inv_name_short						= str_upgrade_parts_1
inv_grid_width     = 2
inv_grid_height    = 1
inv_grid_x         = 33
inv_grid_y         = 21
cost								= 2000
inv_weight							= 1.0

1icon_layer_x       	                           = 50
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_upgrade

tier = 2

[upgr_w_oldworld_kit_2]:tch_upgr
visual								= dynamics\upgrade\upgr_o_2.ogf
description							= str_upgrade_parts_2_descr
inv_name							= str_upgrade_parts_2
inv_name_short						= str_upgrade_parts_2
inv_grid_width     = 2
inv_grid_height    = 1
inv_grid_x         = 33
inv_grid_y         = 22
cost								= 4000
inv_weight							= 1.0

1icon_layer_x       	                           = 50
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_upgrade

tier = 3

[upgr_w_oldworld_kit_3]:tch_upgr
visual								= dynamics\upgrade\upgr_o_3.ogf
description							= str_upgrade_parts_3_descr
inv_name							= str_upgrade_parts_3
inv_name_short						= str_upgrade_parts_3
inv_grid_width     = 2
inv_grid_height    = 1
inv_grid_x         = 33
inv_grid_y         = 23
cost								= 6000
inv_weight							= 1.0

1icon_layer_x       	                           = 50
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_upgrade

tier = 4

[prt_scrap_outfit_1]:tch_part
visual				                                   = dynamics\equipments\trade\ammo.ogf
description			                                   = str_prt_scrap_outfit_1_descr
inv_name			                                   = str_prt_scrap_outfit_1
inv_name_short			                               = str_prt_scrap_outfit_1
inv_grid_width     = 1
inv_grid_height    = 1
inv_grid_x         = 35
inv_grid_y         = 21

1icon_layer_x       	                           = 0
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_tier_1

cost				                                   = 50
inv_weight			                                   = 0.1
attach_angle_offset		                               = -0.287979, 1.560923, 1.544060
attach_position_offset		                           = 0.096910, -0.013594, 0.107925
attach_bone_name		                               = bip01_r_hand
auto_attach				                               = false
snd_on_take								 		       = part
tier                                                   = 1

[prt_scrap_outfit_2]:tch_part
visual				                                   = dynamics\equipments\trade\ammo.ogf
description			                                   = str_prt_scrap_outfit_2_descr
inv_name			                                   = str_prt_scrap_outfit_2
inv_name_short			                               = str_prt_scrap_outfit_2
inv_grid_width     = 1
inv_grid_height    = 1
inv_grid_x         = 35
inv_grid_y         = 22
cost				                                   = 150
inv_weight			                                   = 0.25
attach_angle_offset		                               = -0.287979, 1.560923, 1.544060
attach_position_offset		                           = 0.096910, -0.013594, 0.107925
attach_bone_name		                               = bip01_r_hand
auto_attach				                               = false
snd_on_take								 		       = part

1icon_layer_x       	                           = 0
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_tier_2

tier                                                   = 2

[prt_scrap_outfit_3]:tch_part
visual				                                   = dynamics\equipments\trade\ammo.ogf
description			                                   = str_prt_scrap_outfit_3_descr
inv_name			                                   = str_prt_scrap_outfit_3
inv_name_short			                               = str_prt_scrap_outfit_3
inv_grid_width     = 1
inv_grid_height    = 1
inv_grid_x         = 35
inv_grid_y         = 23
cost				                                   = 300
inv_weight			                                   = 0.5
attach_angle_offset		                               = -0.287979, 1.560923, 1.544060
attach_position_offset		                           = 0.096910, -0.013594, 0.107925
attach_bone_name		                               = bip01_r_hand
auto_attach				                               = false
snd_on_take								 		       = part

1icon_layer_x       	                           = 0
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_tier_3

tier                                                   = 3


[upgr_o_oldworld_kit_1]:tch_upgr
visual								= dynamics\upgrade\upgr_o_1.ogf
description							= str_upgrade_outfit_parts_1_descr
inv_name							= str_upgrade_outfit_parts_1
inv_name_short						= str_upgrade_outfit_parts_1
inv_grid_width     = 2
inv_grid_height    = 1
inv_grid_x         = 34
inv_grid_y         = 24
cost								= 3000
inv_weight							= 1.0

1icon_layer_x       	                           = 50
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_upgrade

tier = 2

[upgr_o_oldworld_kit_2]:tch_upgr
visual								= dynamics\upgrade\upgr_o_2.ogf
description							= str_upgrade_outfit_parts_2_descr
inv_name							= str_upgrade_outfit_parts_2
inv_name_short						= str_upgrade_outfit_parts_2
inv_grid_width     = 2
inv_grid_height    = 1
inv_grid_x         = 34
inv_grid_y         = 25
cost								= 6000
inv_weight							= 1.0

1icon_layer_x       	                           = 50
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_upgrade

tier = 3

[upgr_o_oldworld_kit_3]:tch_upgr
visual								= dynamics\upgrade\upgr_o_3.ogf
description							= str_upgrade_outfit_parts_3_descr
inv_name							= str_upgrade_outfit_parts_3
inv_name_short						= str_upgrade_outfit_parts_3
inv_grid_width     = 2
inv_grid_height    = 1
inv_grid_x         = 34
inv_grid_y         = 26
cost								= 9000
inv_weight							= 1.0

1icon_layer_x       	                           = 50
1icon_layer_y      		                           = 0
1icon_layer_scale   	                           = 1
1icon_layer        	                               = tch_ico_upgrade

tier = 4
